package com.bishe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName user
 */
@Data
@TableName(value ="user")
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 关联id
     */
    @ApiModelProperty(value = "关联id")
    @TableField(value = "uid")
    private String uid;

    /**
     * 
     */
    @ApiModelProperty(value = "班级")
    @TableField(value = "stu_class")
    private String stuClass;


    @ApiModelProperty(value = "头像")
    private String avatar;


    @ApiModelProperty(value = "班级名")
    @TableField(exist = false)
    private String stuClassName;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @TableField(value = "username")
    private String username;


    @ApiModelProperty(value = "性别")
    private String sex;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @TableField(value = "password")
    private String password;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    @TableField(value = "number")
    private String number;

    /**
     * 类型 0管理 1学生 2教师
     */
    @ApiModelProperty(value = "类型 admin管理 s学生 t教师")
    @TableField(value = "type")
    private String type;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "cjsj")
    private Date cjsj;

    /**
     * 修改时间
     */
    @TableField(value = "xgsj")
    private Date xgsj;

    /**
     * 数据状态
     */
    @TableField(value = "status")
    private Integer status;


    /**
     * 分数
     */
    @ApiModelProperty(value = "分数")
    @TableField(exist = false)
    private Integer result;

    @ApiModelProperty(value = "图标")
    @TableField(exist = false)
    private String icon;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}